// store.js

import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    user: [], // To store user information after login
   
  },
  mutations: {
    setUser(state, user) {
      state.user = user;
      
    },
    clearUser(state) {
      state.user = null;
      
    },
  },

});
